package cn.sunlight.city.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Table;

import java.io.Serializable;
import java.util.List;

/**
 * @ClassName: Province
 * @Description: 省份表
 * @Author: sunlight
 * @Date: 10:51 - 2022/2/10
 * @Version: 1.0
 **/
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_address_province")
public class Province implements Serializable {

    private static final long serialVersionUID = 3600151111486900363L;

    @Id
    private int id;

    private String code;//省份编码

    private String name;    //省份名称

    //private City cities;
    private List<City> cities;
}
